// 会员管理页面
import axios from 'axios';

// 查询私教、团课会员  /api/user/selectByRule
export const selectByRule = (params) => axios.post('/api/user/selectByRule', params)

// 根据页面URL获取表格顶部的操作按钮 /api/userrolemenu/selectByMenuUrl
export const selectByMenuUrl = (params) => axios.get('/api/userrolemenu/selectByMenuUrl', { params })

// 教练查询列表 /api/enterprisemembers/selectCoachByRule
export const selectCoachByRule = (params) => axios.post('/api/enterprisemembers/selectCoachByRule', params)

// 私教会员 编辑弹框 修改用户接口 api/user/updateByPrimaryKeySelective api/vipUser/updateByPrimaryKeySelective
export const user_updateByPrimaryKeySelective = (params) => axios.post('/api/user/updateByPrimaryKeySelective', params)
export const vipUser_updateByPrimaryKeySelective = (params) => axios.post('/api/vipUser/updateByPrimaryKeySelective', params)

// 私教会员删除接口 /api/user/deleteByPrimaryKey
export const deleteByPrimaryKey = (params) => axios.get('/api/user/deleteByPrimaryKey', { params })

// 修改用户预加载 /api/user/updateUserInit
export const updateUserInit = (params) => axios.post('/api/user/updateUserInit', params)

// 会员信息详情页面 获取订单信息接口 /api/user/selectCourseOrder
export const selectCourseOrder = (params) => axios.get('/api/user/selectCourseOrder', { params })

// 获取课程接口 会员信息详情页面 /api/coursemanagement/courseOptionValue
export const courseOptionValue = (params) => axios.get('/api/coursemanagement/courseOptionValue', { params })

// 查看会员详情 会员信息详情页面 /api/user/vipUserDetail
export const vipUserDetail = (params) => axios.get('/api/user/vipUserDetail', { params })

// 付款方式下拉框 会员信息详情页面 api/tariffmanagement/selectByRule
export const pay_selectByRule = (params) => axios.post('/api/tariffmanagement/selectByRule', params)

// 删除订单信息 所有订单都调这个接口 /api/courseorder/deleteByPrimaryKey
export const order_deleteByPrimaryKey = (params) => axios.get('/api/courseorder/deleteByPrimaryKey', { params })

// 退课 会员信息详情页面 /api/courseorder/orderRefund
export const orderRefund = (params) => axios.post('/api/courseorder/orderRefund', params)

